home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / scoobycastillotenebroso.swf / scripts / DefineButton2_1414 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2007-10-01  |  474b  |  19 lines

  1. on(release, releaseOutside){
  2.    if(this.hitTest(_root.environnement2.library.hit_library))
  3.    {
  4.       this.swapDepths(_parent.swap);
  5.       _root.environnement2.library.gotoAndPlay("closed");
  6.       stopDrag();
  7.       set("_root.controler:drag_this",false);
  8.       this._visible = false;
  9.    }
  10.    else
  11.    {
  12.       this.swapDepths(_parent.swap);
  13.       stopDrag();
  14.       set("_root.controler:drag_this",false);
  15.       this._x = 87.8;
  16.       this._y = -12.55;
  17.    }
  18. }
  19.